GBML manual / Strings

string_lower

s with every letter changed to lower case - changing case.

Syntax

string_lower(s) -> string

Arguments

NameType
sstring

Returns

string

Description

s with every letter changed to lower case - changing case.

ASCII letters only (A-Z) - matching this engine's own default font, whose glyphs are ASCII. Digits, punctuation and anything else pass through unchanged.

Example

var typed = "ADA";
var target = "ada";
var same = string_lower(typed) == string_lower(target);

Lowering (or uppercasing) both sides before comparing them is how to compare two strings without caring which case each one was typed in.

On the GBA

ASCII letters only (A-Z) - matches this engine's own default font, whose glyphs are ASCII. Digits, punctuation and anything else pass through unchanged.

See also: string_upper